package com.szl.mail;

import com.szl.yeb.common.constant.MailConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;

/**
 * 启动类
 *
 * @author szl
 * @since 2022-09-03 19:54:59
 */
@SpringBootApplication
@Slf4j
public class YebMailApplication {
    public static void main(String[] args) {
        SpringApplication.run(YebMailApplication.class, args);
    }

    @Bean
    public Queue queue() {
        return new Queue(MailConstant.MAIL_QUEUE_NAME);
    }
}

